package mogiksaop.qliphoth.client.core.proxy;

import mogiksaop.qliphoth.common.core.proxy.CommonProxy;
import mogiksaop.qliphoth.common.entities.EntityQliphortCephalopod;
import mogiksaop.qliphoth.common.entities.EntityQliphortScout;
import mogiksaop.qliphoth.common.entities.render.EntityRenderQliphortCephalopod;
import mogiksaop.qliphoth.common.entities.render.EntityRenderQliphortScout;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class ClientProxy extends CommonProxy {
	@Override
	public void preInit(FMLPreInitializationEvent event) {
		super.preInit(event);
		addQliphothRenderers();
	}

	@Override
	public void init(FMLInitializationEvent event) {
		super.init(event);
	}

	@Override
	public void postInit(FMLPostInitializationEvent event) {
		super.postInit(event);
	}

	private void addQliphothRenderers() {
		RenderingRegistry.registerEntityRenderingHandler(EntityQliphortScout.class,EntityRenderQliphortScout::new);
		RenderingRegistry.registerEntityRenderingHandler(EntityQliphortCephalopod.class,EntityRenderQliphortCephalopod::new);
	}

//	public void registerRenderers() {
//		// TileEntityRegistry.registerRenderers();
//
////		MinecraftForge.EVENT_BUS.register(new CustomOverlay());
////		MinecraftForge.EVENT_BUS.register(new GuiPixelmonOverlay());
////		MinecraftForge.EVENT_BUS.register(new GuiChatOverlay(Minecraft.func_71410_x()));
////		MinecraftForge.EVENT_BUS.register(new UnderWaterFog());
////		MinecraftForge.EVENT_BUS.register(new RanchBlockHighlightRender());
////		MinecraftForge.EVENT_BUS.register(new MouseOverPlayer());
////		MinecraftForge.EVENT_BUS.register(new RenderEvents());
////		MinecraftForge.EVENT_BUS.register(new BlockRevealRenderer());
//
//		RenderManager renderManager = Minecraft.getMinecraft().getRenderManager();
//		renderManager.getSkinMap().remove("default");
//		renderManager.getSkinMap().remove("slim");
//	}

}